import {SYSTEM_PREFIX} from "../../../store/constant";
import {DIC} from "../../../store/dictionary";

export const formOption = {
  detail: true,
  prop: 'jbxx',
  column: [
    {
      label: "课程名称",
      prop: "name",
      rules: [{
        required: true,
        message: "请输入课程名称",
        trigger: "blur"
      }]
    },
    {
      label: "教师",
      prop: "teacherId",
      type: "select",
      dicUrl: SYSTEM_PREFIX + '/user/all-user',
      props: {
        label: 'realName',
        value: 'id'
      },
      rules: [{
        required: true,
        message: "请选择教师",
        trigger: "blur"
      }]
    },
    // {
    //   label: "教师名称",
    //   prop: "teacherRealName",
    //   rules: [{
    //     required: true,
    //     message: "请输入教师名称",
    //     trigger: "blur"
    //   }]
    // },
    {
      label: "成员人数",
      prop: "memberNum",
      rules: [{
        required: true,
        message: "请输入成员人数",
        trigger: "blur"
      }]
    },
    {
      label: "创建人",
      prop: "createUser",
      type: "select",
      detail: true,
      dicUrl: SYSTEM_PREFIX + '/user/all-user',
      props: {
        label: 'realName',
        value: 'id'
      }
    },
    {
      label: "状态",
      prop: "status",
      type: "select",
      dicData: DIC.courseStatus,
      rules: [{
        required: true,
        message: "请输入状态",
        trigger: "blur"
      }]
    }
  ]
}
